<?php
/**
 *      [Elitechmedia!] (C)2001-2099 MYSELF Inc.
 *      This is NOT a freeware, use is subject to license terms
 *
 *      $Id: iphone_post.php 22609 2013-10-16 01:55:33Z zhangchaofeng
 */
header('Content-type: text/json');
include_once("../classes/DB.class.php");
include_once("../classes/page.class.php");
include_once("../function/member.php");
include_once("../function/util.func.php");
date_default_timezone_set('Asia/Shanghai');
if($_SERVER['REQUEST_METHOD'] == 'POST'):
	$data['type']=addslashes($_POST['type']);//零部件和成品组装类别
	$data['p_id']=addslashes($_POST['p_id']);//轴承加工型号
	$data['part']=addslashes($_POST['part']);//零部件名称
	$data['pc_id']=addslashes($_POST['pc_id']);//工序id
	$data['facility_no']=addslashes($_POST['facility_no']);//机器设备号
	$data['classes']=addslashes($_POST['classes']);//班次
	$data['update_time']=addslashes($_POST['update_time']);//零件加工更新卡套时间
	$data['up_num']=addslashes($_POST['up_num']);//上一次接受的实际数量
	$data['practical_num']=addslashes($_POST['practical_num']);//己自完成的实际数量
	$data['create_time']=time();//建创时间
	if($data['practical_num']!=''):
		$fid = $GLOBALS["DB"]->insert("INSERT INTO data set ".implode_field_value($data));
		if(!$fid):
			$data1['error']="对不起您的操作失败了..!";
		else:
			$data1['success']="您的操作已经成功,数据已经上传..!";
		endif;
	else:
		$data1['error']="实际数量必须,填写否则无法提交..!";
	endif;
endif;
echo json_encode($data1);

















